package com.hnguigu.health.houduan.jpx.controller_jpx;

import com.hnguigu.health.houduan.jpx.service_jpx.TSetmealService;
import com.hnguigu.health.pojo.TSetmeal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@Controller
@RequestMapping("/TSetmealControll")
public class TSetmealController {
    @Autowired
    TSetmealService tSetmealService;
    //1.1 t_setmeal" 展示套餐 名字,介绍,适合年龄 ok
    @RequestMapping("/settsetmealAll")
    @ResponseBody
    public List<TSetmeal> settSetmealAll() {
        List<TSetmeal> tSetmeals = tSetmealService.allTSetmeal();
       return tSetmeals;
    }
}
